using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SandTrigger : MonoBehaviour
{
    Sand sand;

    private void Awake()
    {
        sand = GetComponentInParent<Sand>();
    }

    private void OnTriggerExit(Collider other)
    {
        if (other.tag == "Player")
        {
            sand.Disappear();
        }
    }
}
